package com.grupo1.calculator;

public class Calculator {

	private Calculator() {
		//Shouldn't be called.
	}

	public static int add(int a, int b) {
		
		return a + b;
	}

	public static int substract(int a, int b) {

		return a - b;
	}

	public static int multiply(int a, int b) {

		return a * b;
	}

	public static int divide(int a, int b) {

		if ( b == 0 ) {
			throw new ArithmeticException("/ by zero");
		}

		return a / b;
	}
}
